﻿﻿@{
    ViewBag.Title = "Index";
    List<GongXianDCUI.Models.LayoutArticle> LayoutArticleList = ViewBag.LayoutArticleList as List<GongXianDCUI.Models.LayoutArticle>;
    List<GongXianDCUI.Models.Article> Bulletin = ViewBag.Bulletin as List<GongXianDCUI.Models.Article>;
    List<GongXianDCUI.Models.Article> TongZhi = ViewBag.TongZhi as List<GongXianDCUI.Models.Article>;
    List<GongXianDCUI.Models.Article> buttomImages = ViewBag.buttomImages as List<GongXianDCUI.Models.Article>;
    List<GongXianDCUI.Models.Article>  ArticleTop1=ViewBag.ArticleTop1 as List<GongXianDCUI.Models.Article>;
    List<GongXianDCUI.Models.Funcitions>qiYeWenHua=ViewBag.qiYeWenHua as List<GongXianDCUI.Models.Funcitions>;

}

<div class="Main">
    <div class="left">
        <div class="lt">
            公司新闻 <a href="~/FenBuList/ArticleList/3" target="_blank">更多</a><span>+</span>
        </div>
        <div class="lunhuan">
            <div id="fsD1" class="focus">
                @Html.Action("IndexImgLunBo", "ImgLunBo")
                <div class="fbg">
                    <div class="D1fBt" id="D1fBt">
                        @{ 
                             GongXianDCUI.BLL.ArticleBLL bll = new GongXianDCUI.BLL.ArticleBLL();
                             List<GongXianDCUI.Models.Article> list1 = bll.GetArticleList(300,true).ToList();
                         }
                        @for (int i=1;i<list1.Count+1;i++)
                        {
                            <a href="javascript:void(0)" hidefocus="true" target="_self" class=""><i>@i</i></a>
                        }
                    </div>
                </div>
            </div>

            <script type="text/javascript">
                Qfast.add('widgets', { path: "/content/dianli/js/terminator2.2.min.js", type: "js", requires: ['fx'] });
                Qfast(false, 'widgets', function () {
                    K.tabs({
                        id: 'fsD1',   //焦点图包裹id
                        conId: "D1pic1",  //** 大图域包裹id
                        tabId: "D1fBt",
                        tabTn: "a",
                        conCn: '.fcon', //** 大图域配置class
                        auto: 1,   //自动播放 1或0
                        effect: 'fade',   //效果配置
                        eType: 'click', //** 鼠标事件
                        pageBt: true,//是否有按钮切换页码
                        bns: ['.prev', '.next'],//** 前后按钮配置class
                        interval: 3000  //** 停顿时间
                    })
                })
            </script>

        </div>
        <div class="gsxw">
            @{
                GongXianDCUI.Models.Article firstNew = ViewBag.FirstNews as GongXianDCUI.Models.Article;
            }
            <div class="dxwtit">
                <a href="~/FenBuList/Detail/@firstNew.articleId" target="_blank">@firstNew.title</a>
            </div>
            <div class="xwjs" style="text-indent:2em;">
                @firstNew.content
            </div>
            @{
                List<GongXianDCUI.Models.Article> newslist = ViewBag.NewsList as List<GongXianDCUI.Models.Article>;
            }
            @foreach (var item in newslist)
            {
            <div class="gsxws">
                <div class="dian">
                </div>
                <div class="xwtit">
                    <a href="~/FenBuList/Detail/@item.articleId" target="_blank">@item.title<span></span></a>
                </div>
                <div class="rq">
                    @item.pubdate.Value.ToString("yyyy-MM-dd")
                </div>
            </div>
            }
        </div>
        <div class="img" >
      
        </div>
        <div class="tpxw">

            <div class="yyxts" style="height:188px;">
            <div class="rts">                 
                通知公告 <a href="/UI/FenBuList/ArticleList/1001" style="padding-left:192px;">更多</a><span>+</span>
            </div>
                 @foreach (var item in TongZhi)
            {
                <div class="gsxwss">
                    <div class="sxwtits">
                        <a href="~/FenBuList/Detail/@item.articleId">@(item.title.Length>20?item.title.Substring(0,20)+"...":item.title) 
                        </a>
                        <div class="rqs">
                                @(item.pubdate.ToString().Substring(0, 10))
                         </div>
                    </div>
                </div>
            }
            @if (TongZhi.Count < 1)
            {
                string name = "暂无数据";
                @name
            }
            
        </div>
        </div>

        <div class="tab">
            <div class="bd">
            </div>
            @for (int i = 0; i < LayoutArticleList[1].LayoutDataList.Count; i++)
            {
                <div class="click@(i+1)" id="s@(i+1)" onclick="tab_@(i+1)()">
                    @LayoutArticleList[1].LayoutDataList[i].Functions.FunctionName
                </div>
            }
            <div class="hxs">
            </div>


            @for (int i = 0; i < LayoutArticleList[1].LayoutDataList.Count; i++)
            {
                <div class="tab_@(i+1)_nr" id="tab_@(i+1)_nr" style="display: @(i==0?"block":"none");">
                    <div class="jt@(i+1)">
                    </div>
                    <div class="tab1gd">
                        <a href="~/FenBuList/ArticleList/@(LayoutArticleList[1].LayoutDataList[i].Functions.FunctionId)">更多</a> <span>+</span>
                    </div>

                    @foreach (var item in LayoutArticleList[1].LayoutDataList[i].ArticleList)
                    {
                        <div class="gsxws">
                            <div class="dian">
                            </div>
                            <div class="xwtits">
                                <a href="~/FenBuList/Detail/@item.articleId">@(item.title.Length > 20 ? item.title.Substring(0, 20) + "..." : item.title)</a>
                            </div>
                            <div class="rqs">
                                @(item.pubdate.ToString().Substring(0, 10))
                            </div>
                        </div>
                    }
                    @if (LayoutArticleList[1].LayoutDataList[i].ArticleList.Count<1)
                    {
                        string name = "暂无数据";
                        @name
                    }
                </div>
            }

        </div>


        <!--<div class="tabs">
            @for (int i = 0; i < LayoutArticleList[0].LayoutDataList.Count; i++)
            {
                <div class="click@(i+3)" id="s@(i+3)" onclick="tab_@(i+3)()">
                    @LayoutArticleList[0].LayoutDataList[i].Functions.FunctionName
                </div>
            }

            @for (int i = 0; i < LayoutArticleList[0].LayoutDataList.Count; i++)
            {
                <div class="tab_@(i+3)_nr" id="tab_@(i+3)_nr" style="display: @(i==0?"block":"none");">

                    @foreach (var item in LayoutArticleList[0].LayoutDataList[i].ArticleList)
                    {
                        <div class="gsxwsss">
                            <div class="dian">
                            </div>
                            <div class="xwtits">
                                <a href="~/FenBuList/Detail/@item.articleId">@(item.title.Length > 20 ? item.title.Substring(0, 20) + "..." : item.title) </a>
                            </div>
                            <div class="rqs">
                                @(item.pubdate.ToString().Substring(0, 10))
                            </div>
                        </div>
                    }
                    @if (LayoutArticleList[0].LayoutDataList[i].ArticleList.Count < 1)
                    {
                        string name = "暂无数据";
                        @name
                    }
                </div>
            }

        </div>-->

        <div class="tabss" style="float:left; width:327px;clear: both;">
            <div class="bd">
            </div>
            @for (int i = 0; i < LayoutArticleList[0].LayoutDataList.Count; i++)
            {
                <div class="click@(i>0?2:1)" id="s@(i+5)" onclick="tab_@(i+5)()">
                    @LayoutArticleList[0].LayoutDataList[i].Functions.FunctionName
                </div>
            }
            <div class="hxs">
            </div>

            @for (int i = 0; i < LayoutArticleList[0].LayoutDataList.Count; i++)
            {
                <div class="tab_@(i>0?2:1)_nr" id="tab_@(i+5)_nr" style="display: @(i==0?"block":"none");">
                    <div class="jt@(i+1)">
                    </div>
                    <div class="tab1gd" style="margin-left: 269px;">
                        <a href="~/FenBuList/ArticleList/@(LayoutArticleList[0].LayoutDataList[i].Functions.FunctionId)">更多</a> <span>+</span>
                    </div>

                    @foreach (var item in LayoutArticleList[0].LayoutDataList[i].ArticleList)
                    {
                        <div class="gsxws" style="width:312px;" >
                            <div class="dian">
                            </div>
                            <div class="xwtits">
                                <a href="~/FenBuList/Detail/@item.articleId">@(item.title.Length > 20 ? item.title.Substring(0, 20) + "..." : item.title) </a>
                            </div>
                            <div class="rqs" >
                                @(item.pubdate.ToString().Substring(0, 10))
                            </div>
                        </div>
                    }
                    @if (LayoutArticleList[0].LayoutDataList[i].ArticleList.Count < 1)
                    {
                        string name = "暂无数据";
                        @name
                    }
                </div>
            }
        </div>


        <div class="tabss">
            <div class="bd">
            </div>
            @for (int i = 0; i < LayoutArticleList[2].LayoutDataList.Count; i++)
            {
                <div class="click@(i>0?2:1)" id="s@(i+5)" onclick="tab_@(i+5)()">
                    @LayoutArticleList[2].LayoutDataList[i].Functions.FunctionName
                </div>
            }
            <div class="hxs">
            </div>

            @for (int i = 0; i < LayoutArticleList[2].LayoutDataList.Count; i++)
            {
                <div class="tab_@(i>0?2:1)_nr" id="tab_@(i+5)_nr" style="display: @(i==0?"block":"none");">
                    <div class="jt@(i+1)">
                    </div>
                    <div class="tab1gd">
                        <a href="~/FenBuList/ArticleList/@(LayoutArticleList[2].LayoutDataList[i].Functions.FunctionId)">更多</a> <span>+</span>
                    </div>

                    @foreach (var item in LayoutArticleList[2].LayoutDataList[i].ArticleList)
                    {
                        <div class="gsxws">
                            <div class="dian">
                            </div>
                            <div class="xwtits">
                                <a href="~/FenBuList/Detail/@item.articleId">@(item.title.Length > 20 ? item.title.Substring(0, 20) + "..." : item.title) </a>
                            </div>
                            <div class="rqs">
                                @(item.pubdate.ToString().Substring(0, 10))
                            </div>
                        </div>
                    }
                    @if (LayoutArticleList[2].LayoutDataList[i].ArticleList.Count < 1)
                    {
                        string name = "暂无数据";
                        @name
                    }
                </div>
            }
        </div>
    
    </div>
    <div class="right">
        <div class="scrb">
            <div class="rt">
                生产日报 <a href="">></a> <a href=""><</a>
            </div>
            <div class="sj">
                2016-9-27
            </div>
            <div class="rbtit">
                发 电 量：<span>928万千瓦时</span>
            </div>
            <div class="rbtit">
                上网电量：<span>853万千瓦时</span>
            </div>
            <div class="rbtit">
                厂用电率：<span>7.25%</span>
            </div>
            <div class="rbtit">
                负 荷 率：<span>64.7%</span>
            </div>
            <div class="rbtit">
                累计发电：<span>208293万千瓦时</span>
            </div>
        </div>
        <div class="yyxt">
            <div class="rts">
                应用系统 <a href="">更多</a><span>+</span>
            </div>
            <div class="tie">
                <span>></span><a href="">宜宾分公司OA系统</a>
            </div>
            <div class="tie">
                <span>></span><a href="">缺陷管理系统</a>
            </div>
            <div class="tie">
                <span>></span><a href="">珙县分公司OA系统</a>
            </div>
            <div class="tie">
                <span>></span><a href="">集团公司门户网站</a>
            </div>
        </div>
        <div class="yyxts">
            <div class="rts">                 
                电子公告 <a href="~/FenBuList/ArticleList/10">更多</a><span>+</span>
            </div>
            @foreach (var item in Bulletin)
            {
                <div class="gsxwss">
                    <div class="sxwtits">
                        <a href="~/FenBuList/Detail/@item.articleId">@(item.title.Length>20?item.title.Substring(0,20)+"...":item.title)</a>
                    </div>
                </div>
            }
            @if (Bulletin.Count < 1)
            {
                string name = "暂无数据";
                @name
            }
           
            
        </div>
        <div class="jbx">
            <a href="~/FenBuList/jubaobox">
                <img src="/content/dianli/images/jbx.jpg" />
            </a>
        </div>
        <div class="ghc" style="width:0px;">
            <!--<a href="~/FenBuList/ArticleList/13" target="_blank">
                <img src="/content/dianli/images/ghc.jpg" />
            </a>-->
        </div>
      <!--   @foreach (var item in qiYeWenHua)
        {
         <div class="rlj">
                <a href="~/FenBuList/ArticleList/@item.FunctionId" style="font-size:20px" target="_blank" >@item.FunctionName</a>
         </div>
        }-->
      
    </div>




 <style type="text/css">
.tpimg p{ margin-top:-11px;}
a { color:#213f71; font-size:9pt; text-decoration:none; }
a:hover { color:#0066cc; }
.blk_18 { overflow:hidden; zoom:1; font-size:9pt; border:1px solid #e3e3e3; background:#eee; width:1000px; margin-top:12px; }
.blk_18 .pcont { width:945px; float:left; overflow:hidden; padding-left:5px; }
.blk_18 .ScrCont { width:32766px; zoom:1; margin-left:-5px; }
.blk_18 #List1_1, .blk_18 #List2_1 { float:left;margin-top:3px   }
.blk_18 .LeftBotton, .blk_18 .RightBotton { width:15px; height:74px; float:left; background:url(ax.gif) no-repeat; }
.blk_18 .LeftBotton { background-position: 0 0; margin:8px 5px 0; }
.blk_18 .RightBotton { background-position: 0 -100px; margin:8px 1px 10px 5px; }
.blk_18 .LeftBotton:hover { background-position: -20px 0; }
.blk_18 .RightBotton:hover { background-position: -20px -100px; }
.blk_18 .pl img { display:block; cursor:pointer; border:none; margin:6px auto 6px auto; }
.blk_18 .pl { width:105px; border:1px solid #f3f3f3; float:left; float:left; text-align:center; line-height:24px; }
.blk_18 a.pl:hover { border:1px solid #5dacec; color:#5dacec; background:#fff; }
</style>
<script type="text/javascript">

    var Speed_1 = 10; //速度(毫秒)
    var Space_1 = 20; //每次移动(px)
    var PageWidth_1 = 107 * 6; //翻页宽度
    var interval_1 = 4000; //翻页间隔时间
    var fill_1 = 0; //整体移位
    var MoveLock_1 = false;
    var MoveTimeObj_1;
    var MoveWay_1 = "right";
    var Comp_1 = 0;
    var AutoPlayObj_1 = null;
    function GetObj(objName) { if (document.getElementById) { return eval('document.getElementById("' + objName + '")') } else { return eval('document.all.' + objName) } }
    function AutoPlay_1() { clearInterval(AutoPlayObj_1); AutoPlayObj_1 = setInterval('ISL_GoDown_1();ISL_StopDown_1();', interval_1) }
    function ISL_GoUp_1() { if (MoveLock_1) return; clearInterval(AutoPlayObj_1); MoveLock_1 = true; MoveWay_1 = "left"; MoveTimeObj_1 = setInterval('ISL_ScrUp_1();', Speed_1); }
    function ISL_StopUp_1() {
        if (MoveWay_1 == "right") { return }; clearInterval(MoveTimeObj_1); if ((GetObj('ISL_Cont_1').scrollLeft - fill_1) % PageWidth_1 != 0) { Comp_1 = fill_1 - (GetObj('ISL_Cont_1').scrollLeft % PageWidth_1); CompScr_1() } else { MoveLock_1 = false }
        AutoPlay_1()
    }
    function ISL_ScrUp_1() {
        if (GetObj('ISL_Cont_1').scrollLeft <= 0) { GetObj('ISL_Cont_1').scrollLeft = GetObj('ISL_Cont_1').scrollLeft + GetObj('List1_1').offsetWidth }
        GetObj('ISL_Cont_1').scrollLeft -= Space_1
    }
    function ISL_GoDown_1() { clearInterval(MoveTimeObj_1); if (MoveLock_1) return; clearInterval(AutoPlayObj_1); MoveLock_1 = true; MoveWay_1 = "right"; ISL_ScrDown_1(); MoveTimeObj_1 = setInterval('ISL_ScrDown_1()', Speed_1) }
    function ISL_StopDown_1() {
        if (MoveWay_1 == "left") { return }; clearInterval(MoveTimeObj_1); if (GetObj('ISL_Cont_1').scrollLeft % PageWidth_1 - (fill_1 >= 0 ? fill_1 : fill_1 + 1) != 0) { Comp_1 = PageWidth_1 - GetObj('ISL_Cont_1').scrollLeft % PageWidth_1 + fill_1; CompScr_1() } else { MoveLock_1 = false }
        AutoPlay_1()
    }
    function ISL_ScrDown_1() {
        if (GetObj('ISL_Cont_1').scrollLeft >= GetObj('List1_1').scrollWidth) { GetObj('ISL_Cont_1').scrollLeft = GetObj('ISL_Cont_1').scrollLeft - GetObj('List1_1').scrollWidth }
        GetObj('ISL_Cont_1').scrollLeft += Space_1
    }
    function CompScr_1() {
        if (Comp_1 == 0) { MoveLock_1 = false; return }
        var num, TempSpeed = Speed_1, TempSpace = Space_1; if (Math.abs(Comp_1) < PageWidth_1 / 2) { TempSpace = Math.round(Math.abs(Comp_1 / Space_1)); if (TempSpace < 1) { TempSpace = 1 } }
        if (Comp_1 < 0) {
            if (Comp_1 < -TempSpace) { Comp_1 += TempSpace; num = TempSpace } else { num = -Comp_1; Comp_1 = 0 }
            GetObj('ISL_Cont_1').scrollLeft -= num; setTimeout('CompScr_1()', TempSpeed)
        } else {
            if (Comp_1 > TempSpace) { Comp_1 -= TempSpace; num = TempSpace } else { num = Comp_1; Comp_1 = 0 }
            GetObj('ISL_Cont_1').scrollLeft += num; setTimeout('CompScr_1()', TempSpeed)
        }
    }
    function picrun_ini() {
        GetObj("List2_1").innerHTML = GetObj("List1_1").innerHTML;
        GetObj('ISL_Cont_1').scrollLeft = fill_1 >= 0 ? fill_1 : GetObj('List1_1').scrollWidth - Math.abs(fill_1);
        GetObj("ISL_Cont_1").onmouseover = function () { clearInterval(AutoPlayObj_1) }
        GetObj("ISL_Cont_1").onmouseout = function () { AutoPlay_1() }
        AutoPlay_1();
    }
</script>







    <div class="ljbg">

          
<div class="blk_18"> <a class="LeftBotton" onmousedown="ISL_GoUp_1()" onmouseup="ISL_StopUp_1()" onmouseout="ISL_StopUp_1()" href="javascript:void(0);" target="_self"></a>
  <div class="pcont" id="ISL_Cont_1">
    <div class="ScrCont">
      <div id="List1_1">
            @foreach (var item in buttomImages)
            {
                <a class="pl" href="#" >
                    <img src="@item.ImageUrl" alt="@item.title" width="96" height="72"/>
                    @item.title
                </a> 
            }
        
             
      </div>
      <div id="List2_1"></div>
    </div>
  </div>
  <a class="RightBotton" onmousedown="ISL_GoDown_1()" onmouseup="ISL_StopDown_1()" onmouseout="ISL_StopDown_1()" href="javascript:void(0);" target="_self"></a> </div>
<div class="c"></div>
<script type="text/javascript">
        <!--
    picrun_ini()
    //-->
        </script>
<!-- picrotate_left end -->



    </div>
